<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title><?php echo $this->_tpl_vars['form']['formgroupname'] ?> - <?php echo $this->_tpl_vars['lngpack']['sitename'] ?></title>
<meta name="keywords" content="<?php echo $this->_tpl_vars['lngpack']['keyword'] ?>" />
<meta name="description" content="<?php echo $this->_tpl_vars['lngpack']['description'] ?>" />
<link href="/css/style_cn.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->_tpl_vars['rootdir'] ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['rootdir'] ?>js/basicrun.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['rootdir'] ?>js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
var seccode_empty = "<?php echo $this->_tpl_vars['lngpack']['seescodeerr'] ?>";
function <?php echo $this->_tpl_vars['form']['formcode'] ?>form(seccodetype) {
	<?php if (count($this->_tpl_vars['array'])>0){$divid_i=1;for($i=0;$i<count($this->_tpl_vars['array']); $i++){?>
		<?php if($this->_tpl_vars['array'][$i]['isvalidate']==1){ ?>
			<?php if($this->_tpl_vars['array'][$i]['validatetext']!=''){ ?>
				if(document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>.value.match(<?php echo $this->_tpl_vars['array'][$i]['validatetext'] ?>ig)==null) {
			<?php }else{ ?>
				if(document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>.value==''){
			<?php } ?>
			document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>.focus();
			alert('<?php echo $this->_tpl_vars['array'][$i]['typename'] ?>Input error, please return to re-enter');
			return false;
		}
		<?php } ?>
	<?php }} ?>

	if(seccodetype=='1' && document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.seccode.value.match(/^[A-Z]{4}$/ig)==null) {
		document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.seccode.focus();
		alert(seccode_empty);
		return false;
	}
	
	if(document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.name.value=="") {
		document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.name.focus();
		alert("姓名不能为空！");
		return false;
	}
	if(document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.hyhm.value=="") {
		document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.hyhm.focus();
		alert("会员号码不能为空！");
		return false;
	}
	if(document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.hyhm.value=="") {
		document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.hyhm.focus();
		alert("联系电话不能为空！");
		return false;
	}
	if(document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.tel.value=="") {
		document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.tel.focus();
		alert("联系电话不能为空！");
		return false;
	}
	
	if(document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.email.value=="") {
		document.<?php echo $this->_tpl_vars['form']['formcode'] ?>.email.focus();
		alert("电子邮箱不能为空！");
		return false;
	}
}
</script>
<script type="text/javascript">
$().ready(function() {
	$("#clickmenubotton li span").hover(function() {
		$(this).addClass("bgmenuhove2");
		$(this).parent().find("ul.subnav").slideDown('fast').show(); 
		$(this).parent().hover(function() {}, function(){
			$(this).parent().find("ul.subnav").fadeOut('fast');
			$(this).parent().find("span").removeClass("bgmenuhove2");
		});
	});
});
</script>
</head>

<body>
<div class="all">
	885BA145EFC8431D34F5CC06D142F143default/cn/public/head2.html|885BA145EFC8431D34F5CC06D142F143
           <div class="content">
        	<div class="clear"></div>
        	<div class="dengluz zhuce">
              <div class="form">
					<form name="<?php echo $this->_tpl_vars['form']['formcode'] ?>" id="<?php echo $this->_tpl_vars['form']['formcode'] ?>" method="post" action="<?php echo $this->_tpl_vars['form']['action'] ?>"  onSubmit="return <?php echo $this->_tpl_vars['form']['formcode'] ?>form('<?php echo $this->_tpl_vars['form']['isseccode'] ?>')">
					<input type="hidden" name="linkurl" value="add">
					<input type="hidden" name="fgid" id="fgid" value="<?php echo $this->_tpl_vars['form']['fgid'] ?>">
					<input type="hidden" name="formcode" id="formcode" value="<?php echo $this->_tpl_vars['form']['formcode'] ?>">

            


						<?php if (count($this->_tpl_vars['array'])>0){$divid_i=1;for($i=0;$i<count($this->_tpl_vars['array']); $i++){?>
						<?php if($this->_tpl_vars['array'][$i]['isline']==1){ ?>
                        <?php echo $this->_tpl_vars['array'][$i]['typename'] ?>
						<?php }else{ ?>
                        
                        <?php if($this->_tpl_vars['array'][$i]['isvalidate']==1){ ?>*<?php } ?><span><?php echo $this->_tpl_vars['array'][$i]['typename'] ?>:</span>
                        

								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='string'){ ?><input type="text" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" size="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" maxlength="<?php echo $this->_tpl_vars['array'][$i]['attrlenther'] ?>" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?>" class="input1"/><br /><?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='int'){ ?><input type="text" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>]" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" size="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" maxlength="<?php echo $this->_tpl_vars['array'][$i]['attrlenther'] ?>" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?>" class="input1"/><br /><?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='datetime'){ ?>
									 <input type="text" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" size="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" onClick="WdatePicker({el:'<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>',readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" maxlength="<?php echo $this->_tpl_vars['array'][$i]['attrlenther'] ?>" class="input1"/><br />
								<?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='selectinput'){ ?>
								<input type="text" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" size="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" value="" maxlength="<?php echo $this->_tpl_vars['array'][$i]['attrlenther'] ?>" class="input1"/><br />
								<select size="1" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>selectinputvalue" onChange="javascript:$('#<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>').val(this.value)">
									<option value=""><?php echo $this->_tpl_vars['array'][$i]['typename'] ?></option>
									<?php if (count($this->_tpl_vars['array'][$i]['selectinputvalue'])>0){$divid_ii=1;for($ii=0;$ii<count($this->_tpl_vars['array'][$i]['selectinputvalue']); $ii++){?>
									<option value="<?php echo $this->_tpl_vars['array'][$i]['selectinputvalue'][$ii]['name'] ?>"><?php echo $this->_tpl_vars['array'][$i]['selectinputvalue'][$ii]['name'] ?></option>
									<?php }} ?>
								</select><br />
								<?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='img'){ ?>
									<input type="text" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" size="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?>" class="input1"/><br />
								<?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='addon'){ ?>
									<input type="text" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" size="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?>" class="input1"/><br />
								<?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='htmltext'){ ?><textarea name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" cols="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" rows="<?php echo $this->_tpl_vars['array'][$i]['attrrow'] ?>" class="input1"><?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?></textarea><br /><?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='editor'){ ?><textarea name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" cols="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" rows="<?php echo $this->_tpl_vars['array'][$i]['attrrow'] ?>" class="input1"><?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?></textarea><br /><?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='text'){ ?><textarea name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" cols="<?php echo $this->_tpl_vars['array'][$i]['attrsize'] ?>" rows="<?php echo $this->_tpl_vars['array'][$i]['attrrow'] ?>" class="input1"><?php echo $this->_tpl_vars['array'][$i]['attrvalue'] ?></textarea><br /><?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='select'){ ?>
									<select size="1" name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>">
									<?php if (count($this->_tpl_vars['array'][$i]['attrvalue'])>0){$divid_ii=1;for($ii=0;$ii<count($this->_tpl_vars['array'][$i]['attrvalue']); $ii++){?>
										<option <?php if($this->_tpl_vars['array'][$i]['attrvalue'][$ii]['selected']=='selected'){ ?>selected="selected" <?php } ?>value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?>"><?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?></option>
									<?php }} ?>
									</select><br />
								<?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='radio'){ ?>
									<?php if (count($this->_tpl_vars['array'][$i]['attrvalue'])>0){$divid_ii=1;for($ii=0;$ii<count($this->_tpl_vars['array'][$i]['attrvalue']); $ii++){?>
										<input <?php if($this->_tpl_vars['array'][$i]['attrvalue'][$ii]['selected']=='selected'){ ?>checked="checked" <?php } ?>name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" type="radio" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?>" /> <?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?>
									<?php }} ?><br />
								<?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['inputtype']=='checkbox'){ ?>
									<?php if (count($this->_tpl_vars['array'][$i]['attrvalue'])>0){$divid_ii=1;for($ii=0;$ii<count($this->_tpl_vars['array'][$i]['attrvalue']); $ii++){?>
										<input <?php if($this->_tpl_vars['array'][$i]['attrvalue'][$ii]['selected']=='selected'){ ?>checked="checked" <?php } ?>name="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>[]" type="checkbox" id="<?php echo $this->_tpl_vars['array'][$i]['attrname'] ?>" value="<?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?>" /> <?php echo $this->_tpl_vars['array'][$i]['attrvalue'][$ii]['name'] ?>
									<?php }} ?><br />
								<?php } ?>
								<?php if($this->_tpl_vars['array'][$i]['typeremark']!=''){ ?><?php } ?>
						<?php } ?>
						<?php }} ?>
						<?php if($this->_tpl_vars['form']['isseccode']==1){ ?>
						<span>Type the code shown</span><input type="text" id="code" name="seccode" class="input1" maxlength="4" size="3" style="text-transform: uppercase;"/><img title="Try a new code" id="<?php echo $this->_tpl_vars['form']['formcode'] ?>seccodesrc" onClick="sessionimg('<?php echo $this->_tpl_vars['form']['formcode'] ?>seccodesrc','<?php echo $this->_tpl_vars['rootdir'] ?>')" src="<?php echo $this->_tpl_vars['seccodelink'] ?>" style="cursor: pointer;" align="absmiddle"/>
						<?php } ?>
                        <label style="margin-left: 30px;"><input type="submit" class="submit" name="submit" id="<?php echo $this->_tpl_vars['form']['formcode'] ?>botton" value="提交" /> <input class="cancel" name="reset" value="重置" type="reset" /></label>
					</form>
                
                
                </div>
                
            </div>
        </div>


885BA145EFC8431D34F5CC06D142F143default/cn/public/footer_02.html|885BA145EFC8431D34F5CC06D142F143
</div>
</body>

</html>
